package org.yjhking.service;

import org.yjhking.domain.MovieTicket;
import org.yjhking.dto.Movie;
import org.yjhking.query.AjaxResult;

/**
 * @author YJH
 */
public interface MovieTicketService {
    
    
    int deleteByPrimaryKey(Long id);
    
    int insert(MovieTicket record);
    
    int insertSelective(MovieTicket record);
    
    MovieTicket selectByPrimaryKey(Long id);
    
    int updateByPrimaryKeySelective(MovieTicket record);
    
    int updateByPrimaryKey(MovieTicket record);
    
    AjaxResult getMovieList();
    
    AjaxResult buy(Movie movie);
    
    AjaxResult selectByMovieId(Movie movie);
    
    AjaxResult free(Long id);
    
    AjaxResult watchMovie(Movie movie);
}
